package com.aura.bookshop.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.aura.bookshop.entity.Teacher;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sun.org.apache.bcel.internal.classfile.ConstantString;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jinbanglong
 * @since 2020-09-09
 */
public interface TeacherMapper extends BaseMapper<Teacher> {
    Logger logger = LoggerFactory.getLogger(TeacherMapper.class);

    /**
     * 自定义sql分页
     * @param page
     * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
     * @return
     */
    IPage<Teacher> selectMyPage(IPage<Teacher> page, @Param(Constants.WRAPPER) Wrapper<Teacher> queryWrapper);


}
